<script type="text/html" template lay-done="layui.data.sendParams(d);">
    <div class="layui-form coreshop-form layui-form-pane" lay-filter="LAY-app-feedback-editForm" id="LAY-app-feedback-editForm">
        <input type="hidden" name="id" value="{{d.params.data.id || '' }}" />
        <div class="layui-form-item">
            <label for="id" class="layui-form-label ">反馈id</label>
            <div class="layui-input-block">
                <input type="number" min="0" max="999999" name="id" disabled="disabled" lay-verType="tips" class="layui-input" value="{{d.params.data.id || '' }}" />
            </div>
        </div>

        <div class="layui-form-item">
            <label for="userid" class="layui-form-label ">用户id</label>
            <div class="layui-input-block">
                <input type="number" min="0" max="999999" name="userid" disabled="disabled" lay-verType="tips" class="layui-input" value="{{d.params.data.userid || '' }}" />
            </div>
        </div>

        <div class="layui-form-item">
            <label for="username" class="layui-form-label ">用户姓名</label>
            <div class="layui-input-block">
                <input name="username" lay-verType="tips" disabled="disabled" class="layui-input" value="{{d.params.data.username || '' }}" />
            </div>
        </div>

        <div class="layui-form-item">
            <label for="nickname" class="layui-form-label">昵称</label>
            <div class="layui-input-block">
                <input name="nickname" lay-verType="tips" disabled="disabled" class="layui-input" value="{{d.params.data.nickname || '' }}" />
            </div>
        </div>

        <div class="layui-form-item">
            <label for="mobile" class="layui-form-label ">联系电话</label>
            <div class="layui-input-block">
                <input name="mobile" lay-verType="tips" disabled="disabled" class="layui-input" value="{{d.params.data.mobile || '' }}" />
            </div>
        </div>

        <div class="layui-form-item">
            <label for="desc" class="layui-form-label">建议内容</label>
            <div class="layui-input-block">
                <input name="desc" lay-verType="tips" disabled="disabled" class="layui-input" value="{{d.params.data.desc || '' }}" />
            </div>
        </div>      <div class="layui-form-item">
            <label for="create_time" class="layui-form-label">提交时间</label>
            <div class="layui-input-block">
                <input name="create_time" id="editTime-feedback-create_time" disabled="disabled" type="text" lay-verType="tips" class="layui-input" value="{{d.params.data.create_time || '' }}" />
            </div>
        </div>
  

        <div class="layui-form-item">
            <label for="remark" class="layui-form-label  layui-form-required">处理备注</label>
            <div class="layui-input-block">
                <input name="remark" lay-verType="tips" lay-verify="required" class="layui-input" placeholder="请输入处理备注" lay-reqText="请输入处理备注" value="{{d.params.data.remark || '' }}" />
            </div>
        </div>






        <div class="layui-form-item text-right core-hidden">
            <input type="button" class="layui-btn" lay-submit lay-filter="LAY-app-feedback-editForm-submit" id="LAY-app-feedback-editForm-submit" value="确认编辑">
        </div>
    </div>
</script>
<script>
    var debug= layui.setter.debug;
    layui.data.sendParams = function (d) {
        //开启调试情况下获取接口赋值数据
        if (debug) { console.log(d.params.data); }
        layui.use(['admin', 'form', 'laydate', 'upload', 'coreHelper', 'cropperImg'],
        function () {
            var $ = layui.$
                , form = layui.form
                , admin = layui.admin
                , laydate = layui.laydate
                , upload = layui.upload
                , cropperImg = layui.cropperImg
                , coreHelper = layui.coreHelper;
        
            laydate.render({
                elem: '#editTime-feedback-create_time',
                type: 'datetime'
            });
            laydate.render({
                elem: '#editTime-feedback-update_time',
                type: 'datetime'
            });
            form.verify({
                
            });
            //重载form
            form.render(null, 'LAY-app-feedback-editForm');
        })
    };
</script>
